﻿namespace BJYJ_Admin.Application.System.Dtos;

/// <summary>
/// 主键IDDto
/// </summary>
public class AreaIDDto : BaseIdInput
{

}
/// <summary>
/// 搜索DTO
/// </summary>
public class AreaSearchDto : BasePageRequest
{
    /// <summary>
    /// 区划名称
    /// </summary>
    public string NAME { get; set; }

    /// <summary>
    /// 区划代码
    /// </summary>
    public string CODE { get; set; }

    /// <summary>
    /// 父级ID
    /// </summary>
    public int? PID { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 深度
    /// </summary>
    public int? DEPTH { get; set; }
}
/// <summary>
/// 新增区划DTO
/// </summary>
public class AreaInsertDto
{
    /// <summary>
    /// 区划名称
    /// </summary>
    public string NAME { get; set; }

    /// <summary>
    /// 区划代码
    /// </summary>
    public string CODE { get; set; }


    /// <summary>
    /// 状态
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 父级ID
    /// </summary>
    public int? PID { get; set; }

    /// <summary>
    /// 父级路径
    /// </summary>
    public string PARENT_PATH { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 深度
    /// </summary>
    public int? DEPTH { get; set; }

    
    /// <summary>
    /// 简称
    /// </summary>
    public string ABBNAME { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string MEMO { get; set; }
}

/// <summary>
/// 区划状态DTO
/// </summary>
public class AreaStatusDto : BaseIdInput
{
    /// <summary>
    /// 状态0启用1禁用
    /// </summary>
    public int STATUS { get; set; }
}

/// <summary>
/// 区划列表DTO
/// </summary>
public class AreaListOutDto
{


    /// <summary>
    /// 备  注:主键
    /// 默认值:
    ///</summary>
    public int ID { get; set; }

    /// <summary>
    /// 备  注:区划名称
    /// 默认值:
    ///</summary>
    public string? NAME { get; set; }

    /// <summary>
    /// 备  注:区划代码
    /// 默认值:
    ///</summary>
    public string? CODE { get; set; }

    /// <summary>
    /// 备  注:父级ID
    /// 默认值:
    ///</summary>
    public int? PID { get; set; }

    /// <summary>
    /// 备  注:完整路径
    /// 默认值:
    ///</summary>
    public string? PARENT_PATH { get; set; }

    /// <summary>
    /// 备  注:深度
    /// 默认值:
    ///</summary>
    public int? DEPTH { get; set; }

    /// <summary>
    /// 备  注:排序
    /// 默认值:
    ///</summary>
    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 备  注:状态0启用1禁用
    /// 默认值:
    ///</summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 备  注:简称
    /// 默认值:
    ///</summary>
    public string? ABBNAME { get; set; }

    /// <summary>
    /// 备  注:备注
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "MEMO")]
    public string? MEMO { get; set; }


    /// <summary>
    /// 备  注:是否有子节点
    /// </summary>
    public bool HASCHILDREN { get; set; }


}
